#include "draw_flag_data_manager.h"

bool draw_flag_data_manager::AddData(const MST_MAP_TOOL::Lnglat& val)
{
    m_all_datas.push_back(val);

    return true;
}

void draw_flag_data_manager::DeleteData(int index)
{
    if (m_all_datas.size() <= index)
    {
        return;
    }

    auto it = m_all_datas.begin() + index;
    m_all_datas.erase(it);
}

void draw_flag_data_manager::ClearData()
{
    m_all_datas.clear();
}

std::vector<MST_MAP_TOOL::Lnglat>& draw_flag_data_manager::GetDatas()
{
    return m_all_datas;
}